Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android) bump minimum required version to 26 aka Oreo #15493

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

saghul
Copy link
Member

@saghul saghul commented Jan 16, 2025

There is a 1.2% cummulative usage change according to 0 and it allows us to simplify some code going forward.

There is a 1.2% cummulative usage change according to [0] and it allows
us to simplify some code going forward.

[0]: https://apilevels.com/
@saghul saghul requested a review from Calinteodor January 16, 2025 11:18
@@ -53,7 +52,7 @@ public PictureInPictureModule(ReactApplicationContext reactContext) {
// Android Go devices don't support PiP. There doesn't seem to be a better way to detect it than
// to use ActivityManager.isLowRamDevice().
// https://stackoverflow.com/questions/58340558/how-to-detect-android-go
isSupported = Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !am.isLowRamDevice();
isSupported = !am.isLowRamDevice();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may have an issue here. With a fresh start and start screen sharing tapped, there is a conflict between pip and screen sharing.

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that new with this PR? On your device that will return true anyway so the change is a no-op.

See the comment here though:

throw new RuntimeException("Failed to enter Picture-in-Picture");

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the problem is the permissions dialog. Our activity goes to the background for a sec and we try to enter pip, but fail.

We can make this a log line, which is probably better, but that's not related with the PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm your're right. Not related to the PR.

@Calinteodor Calinteodor merged commit 9846228 into jitsi:master Jan 17, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants